package com.googlecode.tabletags.urlbuilder;

import java.util.Map;

import org.apache.struts2.dispatcher.mapper.ActionMapping;

import com.opensymphony.xwork2.util.ValueStack;

/**
 * Generic interface for building url's.  The default implementation is ServletUrlBuilder.
 * Builder specific parameters are retrieve from the value stack.
 */
public interface UrlBuilder {
    public String buildUrl(ValueStack stack, ActionMapping mapping);

    public String buildUrl(ValueStack stack, String uri, Map parameters);
}
